﻿using System;

namespace IOA.MES.DataAccess.ReportModel
{
    /// <summary>
    /// 质量报告对象
    /// </summary>
    public class RQualityReportItem
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 条码
        /// </summary>
        public string BarCode { get; set; }

        /// <summary>
        /// 打包编号
        /// </summary>
        public string PackNo { get; set; }

        /// <summary>
        /// 柜号
        /// </summary>
        public string CabinetNo { get; set; }

        /// <summary>
        /// 片源
        /// </summary>
        public string CellSource { get; set; }

        /// <summary>
        /// 电池片厂家
        /// </summary>
        public string CellCompany { get; set; }

        /// <summary>
        /// 效率
        /// </summary>
        public decimal Efficiency { get; set; }

        /// <summary>
        /// 单片功率
        /// </summary>
        public decimal SinglePower { get; set; }

        /// <summary>
        /// 理论功率
        /// </summary>
        public decimal TheoreticalPower { get; set; }

        /// <summary>
        /// Voc
        /// </summary>
        public decimal Voc { get; set; }

        /// <summary>
        /// Isc
        /// </summary>
        public decimal Isc { get; set; }

        /// <summary>
        /// Vm
        /// </summary>
        public decimal Vm { get; set; }

        /// <summary>
        /// Im
        /// </summary>
        public decimal Im { get; set; }

        /// <summary>
        /// FF
        /// </summary>
        public decimal FF { get; set; }

        /// <summary>
        /// Pmax
        /// </summary>
        public decimal Pmax { get; set; }

        ///<Summary>
        /// ModEff
        ///</Summary>
        public decimal? ModEff { get; set; }

        ///<Summary>
        /// Ress
        ///</Summary>
        public decimal? Ress { get; set; }

        ///<Summary>
        /// Ressh
        ///</Summary>
        public decimal? Ressh { get; set; }

        /// <summary>
        /// CTM
        /// </summary>
        public decimal CTM { get; set; }

        /// <summary>
        /// 额定功率
        /// </summary>
        public decimal RatedPower { get; set; }

        /// <summary>
        /// 铭牌方案
        /// </summary>
        public string NameplateModel { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 工单号
        /// </summary>
        public string WorkOrderNo { get; set; }

        /// <summary>
        /// 电池等级
        /// </summary>
        public string CellLevel { get; set; }

        /// <summary>
        /// 电池型号
        /// </summary>
        public string CellModel { get; set; }

        /// <summary>
        /// 电池颜色
        /// </summary>

        public string CellColor { get; set; }
        /// <summary>
        /// 电池批次号
        /// </summary>
        public string BatteryBatchNo { get; set; }

        /// <summary>
        /// 组件颜色
        /// </summary>
        public string ComponentColor { get; set; }

        /// <summary>
        /// 焊接机
        /// </summary>
        public string WeldingMachine { get; set; }

        /// <summary>
        /// 电池片数
        /// </summary>
        public int CellPiece { get; set; }

        /// <summary>
        /// 方案
        /// </summary>
        public string Schema { get; set; }

        /// <summary>
        /// 温度
        /// </summary>
        public decimal Temp { get; set; }

        /// <summary>
        /// 转换效率
        /// </summary>
        public decimal ConversionEfficiency { get; set; }

        /// <summary>
        /// 光强
        /// </summary>
        public decimal LightIntensity { get; set; }

        /// <summary>
        /// 串阻
        /// </summary>
        public decimal SeriesResistance { get; set; }

        /// <summary>
        /// 并阻
        /// </summary>
        public decimal ParallelResistance { get; set; }

        /// <summary>
        /// 封装损耗
        /// </summary>
        public decimal PackagingLoss { get; set; }

        /// <summary>
        /// 满托数
        /// </summary>
        public int FullPackCount { get; set; }

        /// <summary>
        /// 档位
        /// </summary>
        public string CurrentLevel { get; set; }

        /// <summary>
        /// 等级
        /// </summary>
        public string QLevel { get; set; }

        /// <summary>
        /// 操作员
        /// </summary>
        public string Operator { get; set; }

        /// <summary>
        /// 班次
        /// </summary>
        public string Duty { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public string No { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        public DateTime Time { get; set; }
        public string TimeStr { get { return Time.ToString("yyyy-MM-dd HH:mm:ss"); } }

        ///<Summary>
        /// 接线盒规格
        ///</Summary>
        public string JunBoxSpecs { get; set; }

        ///<Summary>
        /// 背板规格
        ///</Summary>
        public string BackPlanSpecs { get; set; }

        ///<Summary>
        /// 边框规格
        ///</Summary>
        public string AluFrameSpecs { get; set; }

        ///<Summary>
        /// 电池规格
        ///</Summary>
        public string BatterySpecs { get; set; }

        ///<Summary>
        /// 电池厂家
        ///</Summary>
        public string BatteryFactory { get; set; }

        ///<Summary>
        /// 测试时间
        ///</Summary>
        public DateTime? IVTime { get; set; }
        public string IVTimeDateStr { get { return IVTime?.ToString("yyyy-MM-dd") ?? string.Empty; } }

        ///<Summary>
        /// 打包时间
        ///</Summary>
        public DateTime? PackTime { get; set; }
        public string PackTimeDateStr { get { return PackTime?.ToString("yyyy-MM-dd") ?? string.Empty; } }
        public string PackTimeStr { get { return PackTime?.ToString("yyyy-MM-dd HH:mm:ss") ?? string.Empty; } }

        /// <summary>
        /// WorkRemark
        /// </summary>
        public string WorkRemark { get; set; }

        /// <summary>
        /// ArticleNo
        /// </summary>
        public string ArticleNo { get; set; }

        /// <summary>
        /// ItemNumber
        /// </summary>
        public string ItemNumber { get; set; }
    }
}
